/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idv.cloudee.proxy2.impl.getpost;

import com.cirnoworks.http.utils.exception.BadRequestException;
import com.cirnoworks.http.utils.HeaderRequest;
import com.cirnoworks.http.utils.HeaderResponse;
import idv.cloudee.proxy2.framework.ProxySession;
import java.io.OutputStream;

/**
 *
 * @author Cloudee
 */
public interface GETPOSTModifier {

    void beginRequest(ProxySession session);

    HeaderRequest modifyRequest(HeaderRequest param) throws BadRequestException;

    OutputStream getPOSTOutputStream(OutputStream os);

//    String modifyResponseLine(String line);
    HeaderResponse modifyResponse(HeaderResponse param);

    OutputStream getResponseOutputStream(OutputStream os);

    void requestOver();
}
